import 'package:bilibili/http/core/sun_net_adapter.dart';
import 'package:bilibili/http/request/base_request.dart';

class MockAdapter extends SunNetAdapter {
  @override
  Future<SunNetResponse<Map>> send<Map>(BaseRequest request) {
    return Future<SunNetResponse<Map>>.delayed(Duration(milliseconds: 1000),
        () {
      return SunNetResponse(
          data: {"code": 0, "message": 'success'},
          statusCode: 200) as SunNetResponse<Map>;
      ;
    });
  }
}
